package com.tg.demo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Date;

/**
 * Life
 *
 * @author yuanjin
 * @date 2019/3/29
 */
@Entity
@Setter
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ActivityRecord implements Serializable {
    private static final long serialVersionUID = -2254642177131021863L;
    private Integer id;
    private Integer activityId;
    private String userCode;
    private String userName;
    private Integer itemId;
    private String itemValue;
    private String explainInfo;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private Integer yn;
}
